package com.gl.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gl.order.entity.TOrderLining;
import com.gl.order.entity.dto.LiningDto;

import java.util.List;

/**
 * @Author: liangSY
 * @Date: 2021/6/26
 * @ClassName: LiningService
 * @Description: 面料service
 */
public interface LiningService extends IService<TOrderLining> {

    /**
     * 添加面料信息
     * @param orderId 订单id
     * @param orderNo 订单编号
     * @param list 订单相关参数
     */
    void addLinings(String orderId,String orderNo,List<LiningDto> list);

    /**
     * 根据订单获取面料信息
     * @param orderId
     * @return
     */
    List<TOrderLining> findByOrderId(String orderId);

    void delByOrder(String orderId);

    List<TOrderLining> getByOrderId(String orderId);
}
